#@adminLayout()
#define main()
<div class="jbolt_page">
    <div class="jbolt_page_content">
        <div class="col-12">
            <form id="retailerFormFina"  action="/auth/mall/rush/save" method="post" onsubmit="return RefreshsubmitForm(this);">
                <div class="form-group row">
                    <label class="col-4 col-form-label">商家名称</label>
                    <div class="col-7">
                        <select class="form-control"
                                name="rushCommodity.retailer_id"
                                data-autoload
                                data-rule="required"
                                data-tips="请选择商家"
                                data-url="/auth/mall/rush/rush_commodity_select_retailer"
                                data-text="=选择商家="
                                data-value=""
                                data-linkage="true"
                                data-sonid="commoditySelect"
                                data-select="#(retailerSelect??)">
                        </select>
                    </div>
                </div>
                <div class="form-group row">
                    <label class="col-4 col-form-label">商品名称</label>
                    <div class="col-7">
                        <select class="form-control"
                                id="commoditySelect"
                                name="rushCommodity.commodity_id"
                                data-linkage="true"
                                data-rule="required"
                                data-tips="请选择商品"
                                data-srcurl="/auth/mall/rush/rush_commodity_select_comodity?retailer_id="
                                data-text="=请选择商品="
                                data-value=""
                                data-sonid="optionSelect"
                                data-select="#(commoditySelect??)">
                        </select>
                    </div>
                </div>
                <div class="form-group row">
                    <label class="col-4 col-form-label">商品规格</label>
                    <div class="col-7">
                        <select class="form-control"
                                id="optionSelect"
                                name="rushCommodity.option_id"
                                data-linkage="true"
                                data-rule="required"
                                data-tips="请选择商品规格"
                                data-text="=请选择商品规格="
                                data-value=""
                                data-srcurl="/auth/mall/rush/rush_commodity_select_option?commodity_id="
                                data-select="#(optionSelect??)"
                                data-value-attr="id,title"
                                data-handler="put_option_name"
                        >
                        </select>
                    </div>
                </div>

                <div class="form-group row">
                    <label class="col-4 col-form-label">积分抢购价格(元)</label>
                    <div class="col-7">
                        <input type="money" autocomplete="off" data-rule="money" data-tips="请输入正确的价格（只可小数点2位)" class="form-control" min="0" max="10000000000" placeholder="请输入积分抢购价格"  name="credit_price" value="0.00">
                    </div>
                </div>
                <div class="form-group row">
                    <label class="col-4 col-form-label">积分抢购库存</label>
                    <div class="col-7">
                        <input type="number" autocomplete="off"  class="form-control" min="0" max="10000000000"  placeholder="请输入积分抢购库存"  name="rushCommodity.credit_stock" value="0">
                    </div>
                </div>


                <div class="form-group row">
                    <label class="col-4 col-form-label">全民抢购价格(元)</label>
                    <div class="col-7">
                        <input type="money" autocomplete="off" data-rule="money"  data-tips="请输入正确的价格（只可小数点2位)" class="form-control" min="0" max="10000000000"   placeholder="请输入全民抢购价格" name="rush_price" value="0.00">
                    </div>
                </div>

                <div class="form-group row">
                    <label class="col-4 col-form-label">全民抢购库存</label>
                    <div class="col-7">
                        <input type="number" autocomplete="off"   class="form-control"  min="0" max="10000000000" placeholder="请输入全民抢购库存" name="rushCommodity.rush_stock" value="0">
                    </div>
                </div>

                <div class="form-group row"
                     data-radio
                     data-rule="radio"
                     data-name="rushCommodity.member_required"
                     data-default="true">
                    <label class="col-auto col-form-label" >是否启用会员资格：</label>
                    <div class="col"  style="padding-top: 1px;">
                        <div class="radio radio-primary  radio-inline">
                            <input  id="renabletrue" type="radio" name="rushCommodity.member_required"   value="true"/>
                            <label for="renabletrue">启用</label>
                        </div>

                        <div class="radio radio-primary  radio-inline">
                            <input  id="renablefalse" type="radio" name="rushCommodity.member_required"   value="false"/>
                            <label for="renablefalse">禁用</label>
                        </div>
                    </div>
                </div>


                <div class="form-group text-center">
                    <button  type="submit"    class="btn btn-success"   ><i class="fa fa-check mr-2"></i>确定</button>
                </div>
            </form>

        </div>
    </div>
</div>
</div>
#end


#define js()
<script>

</script>
#end
